home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 28
/
028.d81
/
micro melodies
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-08-26
|
3KB
|
81 lines
1 rem jukebox i
5 poke53281,6:poke53280,5:print""chr$(142)"":poke56325,60
9 a1=52944
10 rem ****player****
90 data jesu,medley,a' la gigue,hoe-down,force,bouncer,all 6 tunes,quit
100 :
105 fort=1to8:readf$(t):next:poke816,165:poke817,244
110 :
120 dn=8:sa=780:sx=781:sy=782:sp=783:poke sa,1:poke sx,dn:poke sy,1:sys 65466
130 ife=0thenf$="sid.obj":gosub600:pokesa,0:sys65493:e=1:ifpeek(sp)and1goto710
140 ss=49152:hk=49435:pl=49458:dp=49629:la=peek(49)+256*peek(50)+100:dr=la
150 for k=la to la+90:read p:poke k,p:next:la=la+91:hi=int(la/256):lo=la-256*hi
160 goto 510
300 fora=a1+(ts-1)*40toa1+(ts-1)*40+2:pokea,peek(a)and240or1:next
301 poke198,0:wait198,1:gett$:p$=t$
302 ifp$<"1"orp$>"8"then300
303 ifp$="7"thents=0
304 ifp$="7"thengetw$:ifpeek(631)<>13thengosub1000
305 ifpeek(631)=13 thengosub900:goto300
306 ts=val(t$):k=fre(0):f$=f$(ts):ifts=8then60000
310 fora=a1+(ts-1)*40toa1+(ts-1)*40+2
315 pokea,peek(a)and240or7
316 next
320 poke sa,1:poke sx,dn:poke sy,0:sys 65466:f$=f$+".mus":gosub 600
330 poke sa,0:poke sx,lo:poke sy,hi:sys 65493:if peek(sp)and1 goto 700
400 sys hk:poke sx,lo:poke sy,hi:sys pl:k=peek(sx)+256*peek(sy):f$=" ":c=18
401 :
410 :
412 :
420 :
430 wait 56320,16:poke 198,0:poke ss,7
440 if peek(198) then geta$:poke 198,0:poke ss,0
450 if peek(ss)and7 goto 440
460 poke 54276,0:poke 54283,0:poke 54290,0:sys dp:ifa$<>"q"then 500
462 goto300
500 fora=a1+(ts-1)*40toa1+(ts-1)*40+2:pokea,peek(a)and240or1:next
510 ifp$="7"then304
520 goto300:open 1,8,0,"$":get #1,s$,s$:print " ";:tb=1:k=0
530 sys dr:tb=tb+13:print tab(tb);:if tb=40 then tb=1:print " ";
540 if st=0 then k=k+1:goto 530
550 print:close 1:sys 65484:if k=0 then print:print " no music files on disk"
560 print:goto 300
600 for k=1 to len(f$):poke 584+k,asc(mid$(f$,k)):next
610 poke sa,len(f$):poke sx,73:poke sy,2:sys 65469:return
700 if peek(sa)=4 then print " i don't know that song":print:goto 300
710 p=peek(sa):print " error: ";:if p=4 then print "file not found":end
720 if p=5 then print "device not present":end
730 print st:end
800 data 162,1,32,198,255,32,207,255,32,207,255,32,207,255,133,251,32,207,255
801 data 133,252,32,207,255,164,144,208,62,201,34,208,245,160,0,32,207,255,201
802 data 34,240,6,153,73,2,200,208,243,132,253,32,207,255,168,208,250,164,253
803 data 192,5,144,200,162,3,185,72,2,221,69,2,208,190,136,202,16,244,132,253
804 data 160,0,185,73,2,32,210,255,200,196,253,208,245,96
1000 ts=ts+1:ifts=7thents=1
1010 t$=mid$(str$(ts),2):return
60000 poke56578,63:poke56576,151:poke53265,27:poke53270,200:poke53272,21
60001 gosub61000
60002 print"[147]"spc(10)"[210]eturning to [204][207][193][196][211][212][193][210]"
60005 f$="hello connect"
60010 print"loadf$,8":print"run":poke631,13:poke632,13:poke198,2:end
61000 rem give credits
61010 print"[147]"spc(12)"** [195]redits **"
61012 print"[202]esu, [202]oy of [205]an's [196]esiring"
61014 print"[202].[211]. [194]ach--[193]dapted by [212]om [208]arker"
61022 print"[202]eremy [194]ender/[212]he [211]heriff"
61024 print"[197]merson, [204]ake, & [208]almer"
61032 print"[193]'la [199]igue"
61034 print"[202]ohann [211]ebastian [194]ach"
61042 print"[200]oe-[196]own"
61044 print"[193]aron [195]opeland"
61046 print"[210]eleased by [197]merson, [204]ake, & [208]almer"
61052 print"[198]orce"
61054 print"[202]ohn [215]illiams"
61056 print"[198]rom the [211]tar [215]ars [211]aga"
61062 print"[194]ouncer"
61064 print"[197]merson, [204]ake, & [208]almer"
61070 print" [193]ll music coded by [204]incoln [195]raig using"
61072 print" [211][201][196][197][196][201][212][207][210] by [195]raig [195]hamberlain."
61075 forx=1to4000:ifpeek(198)=0thennext
61080 return